<div id="page">
<?php include_once "header.php" ?>
<div id="content" class="widecolumn">
<?php if(strlen($id) > 0): ?>
<a href="user.php">Settings</a> | <a href="cnxn_mgr.php">Connections</a> | <a href="cnxn_srch.php">Add Connections</a> | <a href="channels.php">Groups</a>
<?php endif; ?>
<div id="oid_form" style="display:none">
<fieldset id="openid">
<legend>OpenID Login</legend>
<form action="" method="post" onsubmit="this.login.disabled=true;">
<input type="hidden" name="openid_action" value="login">
<div><input type="text" name="openid_url" class="openid_login"><input type="submit" name="login" value="login &gt;&gt;"></div>
<div><a href="http://openid.net/get/" class="link" >Get an OpenID</a></div>
</form>
</fieldset>
</div>
<!-- STATUS FORM -->
<div id="openmb_form">
<p><a href="javascript:void(0)" onclick="signout()">Sign Out</a> | <a href="javascript:void(0)" onclick="Poll()">Refresh</a></p>
<form id='openmb' name='openmb' method='post' action='post.php'>
<input type="hidden" id="id" value="<?php echo IDGet($oid); ?>" />

<p>To <select id="channel" name="channel" onchange='PostRefresh(DOM("id").value,DOM("channel").options[DOM("channel").selectedIndex].value,1);'><option value="1">Public</option>
<?php
$channels = new Channels();

if($id)
{
	$rs = $channels->Get($id);

	if($rs)
	{
		foreach($rs as $row)
		{
			echo '<option value="'.$row["id"].'">'.$row["name"].'</option>';
		}
	}
}
?>
</select></p>
<br/>
<p>Status<br/>
<span id="statusLen" style="width:325px;text-align:right;">140</span><br/>
<textarea id="status" name="status" cols="50" rows="5" onclick="statusCount()" onchange="statusCount()" onkeyup="statusCount()"></textarea></p>
<p>Link<br/>
<input id="link" name="link" class="link" /></p>
<p>Tags<br/>
<input id="tags" name="tags" class="tags" /></p>
<input type='submit' value="Update" />
</form>

<p>&nbsp</p>
<!-- STATUS FORM -->
<div id="divPosts" class="divPosts"></div>
</div>
</div>
